package com.probox.common.core.enums;

/**
 * @author liuhj
 */

public enum CustomerFundBizTypeEnum {

    score("score","积分下载"),
    redBag("redBag","银币"),
    paiban("paiban","免费排版次数"),
    profit("profit","经验"),
    freeze("freeze","冻结"),
    withdraw("withdraw","提现"),
    recharge("recharge","充值"),
    exchange("exchange","兑换码"),
    buyVip("buyVip","购买VIP"),
    signIn("signIn","签到"),
    counterSignIn("counterSignIn","补签"),
    balance("balance","金币");

    private CustomerFundBizTypeEnum(String k, String v) {
        this.setKey(k);
        this.setValue(v);
    }

    public static String getNameByKey(String key) {
        String rst = "";
        for(CustomerFundBizTypeEnum oe: CustomerFundBizTypeEnum.values()) {
            if (oe.getKey().equals(key)) {
                rst = oe.getValue();
            }
        }
        return rst;
    }

    private String key;
    private String value;

    public String getKey() {
        return key;
    }
    public void setKey(String key) {
        this.key = key;
    }
    public String getValue() {
        return value;
    }
    public void setValue(String value) {
        this.value = value;
    }
}
